package com.chr.hongyun.dao;

import com.chr.hongyun.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

@Mapper
public interface TbUserDao {
    public boolean ifHasUser(String openId);

    public boolean ifHasAdmin();

    public boolean ifHasManager();

    public boolean ifHasCharge(int deptId);

    public void insertUser(HashMap param);

    public Integer searchIdByOpenId(String openId);

    public Set<String> searchUserPermissions(int userId);

    public TbUser searchById(int userId);

    public String searchUserHireDate(int userId);

    public HashMap searchUserSummary(int userId);

    public ArrayList<HashMap> searchUserGroupByDept(HashMap map);

    public ArrayList<HashMap> searchMembers(List param);

    public HashMap searchUserInfo(int userId);

    public int updateUserInfo(HashMap param);
}